package com.lantosec.hmrp.modules.monitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.monitor.entity.WarningDataEntity;
import com.lantosec.hmrp.modules.monitor.entity.WarningTotalEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MonitorWarningMapper extends BaseMapper<WarningTotalEntity> {

    WarningTotalEntity getWarningTotalByYear(@Param("startTime") String startTime, @Param("endTime")String endTime);

    List<WarningTotalEntity> getWarningDisposalRate(@Param("startTime") String startTime, @Param("endTime")String endTime);

    List<WarningTotalEntity> getWarningDetailsList(@Param("startTime") String startTime, @Param("endTime") String endTime,
                                                   @Param("type") Integer type,@Param("deptId")String deptId);

    PageVO<WarningDataEntity> getWarningData(PageVO<WarningDataEntity> page, @Param("startTime")String startTime,
                                                 @Param("endTime")String endTime, @Param("type")Integer type,
                                                 @Param("ruleId") String ruleId,@Param("deptId") String deptId);

    List<WarningTotalEntity> getChargeDeptRate(@Param("startTime") String startTime, @Param("endTime")String endTime);

    PageVO<WarningDataEntity> getWarningWorkbench(PageVO<WarningDataEntity> page, @Param("userId") String userId);

    PageVO<WarningDataEntity> getWarningHaveDoneDetails(PageVO<WarningDataEntity> page, @Param("userId")String userId,
                                                  @Param("ruleId")String ruleId);

    List<WarningDataEntity> getUserList();

    WarningDataEntity getWarningBacklog(String ruleId);

    PageVO<WarningDataEntity> getWarningBacklogDetails(PageVO<WarningDataEntity> page, @Param("ruleId") String ruleId);
}
